\documentclass[12pt,letterpaper]{article}
% \usepackage{fullpage}
\usepackage[top=2.5cm, bottom=4cm, left=2.5cm, right=2.5cm]{geometry}
\usepackage{amsmath,amsthm,amsfonts,amssymb,amscd}
\usepackage{xcolor}
\usepackage{tcolorbox}
\tcbuselibrary{skins,breakable}
\usepackage{lastpage}
\usepackage{enumerate}
\usepackage{fancyhdr}
\usepackage{mathrsfs}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{hyperref}
\usepackage{steinmetz}
\usepackage{mathtools}
\usepackage{empheq}
\usepackage{natbib}
% \newcommand{\mathbbm}[1]{\text{\usefont{U}{bbm}{m}{n}#1}}
\newcommand{\mathbbm}[1]{\text{\usefont{U}{dsrom}{m}{n}#1}}
% \newtheorem{theorem}{Theorem}
\newcommand*\widefbox[1]{\fbox{\hspace{2em}#1\hspace{2em}}}
\newcommand\vs{\vspace*{3em}}

$for(header-includes)$
$header-includes$
$endfor$

$if(number-sections)$
$else$
\setcounter{secnumdepth}{0}
$endif$

%\input defs.tex   %load tex file with macros used in slides

% standard definitions you  may likely need

\newcommand{\ones}{\mathbf 1}
\newcommand{\reals}{{\mbox{\bf R}}}
\newcommand{\integers}{{\mbox{\bf Z}}}
\newcommand{\symm}{{\mbox{\bf S}}}  % symmetric matrices

\newcommand{\nullspace}{{\mathcal N}}
\newcommand{\range}{{\mathcal R}}
\newcommand{\Rank}{\mathop{\bf Rank}}
\newcommand{\Tr}{\mathop{\bf Tr}}
% \newcommand{\diag}{\mathop{\bf diag}}
\newcommand{\card}{\mathop{\bf card}}
\newcommand{\rank}{\mathop{\bf rank}}
\newcommand{\conv}{\mathop{\bf conv}}
\newcommand{\prox}{\mathbf{prox}}
% \newcommand{\tr}{\operatorname{trace}}

\newcommand{\Expect}{\mathop{\bf E{}}}
\newcommand{\Prob}{\mathop{\bf Prob}}
\newcommand{\Co}{{\mathop {\bf Co}}} % convex hull
% \newcommand{\dist}{\mathop{\bf dist{}}}
% \newcommand{\argmin}{\mathop{\rm argmin}}
% \newcommand{\argmax}{\mathop{\rm argmax}}
\newcommand{\epi}{\mathop{\bf epi}} % epigraph
\newcommand{\Vol}{\mathop{\bf vol}}
\newcommand{\dom}{\mathop{\bf dom}} % domain
\newcommand{\intr}{\mathop{\bf int}}
\newcommand{\sign}{\mathop{\bf sign}}

\newcommand{\cf}{{\it cf.}}
\newcommand{\eg}{{\it e.g.}}
\newcommand{\ie}{{\it i.e.}}
\newcommand{\etc}{{\it etc.}}

% add your own definitions as necessary below...
\def\R{\mathbb{R}}
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newenvironment{CSLReferences}%
{\setlength{\parindent}{0pt}%
\everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces}%
{\par}
% \usepackage[ruled, lined, linesnumbered]{algorithm2e}
% \DontPrintSemicolon
% \LinesNumbered
% \SetKw{Input}{input}
\renewcommand{\d}{\mathrm{d}}
\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\usepackage{float}
\let\origfigure\figure
\let\endorigfigure\endfigure
\renewenvironment{figure}[1][2] {
    \expandafter\origfigure\expandafter[ht]
} {
    \endorigfigure
}
\usepackage{tcolorbox}

\makeatletter
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
\makeatother
% Scale images if necessary, so that they will not overflow the page
% margins by default, and it is still possible to overwrite the defaults
% using explicit options in \includegraphics[width, height, ...]{}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}

%%%%%%%%%%%%%%%%%%%%%%%% Edit the filelds below as appropriate %%%%%%%%%
\newcommand\course{EEMEE 6602 - Spring 2023}
\newcommand\hwnumber{$hwnum$} % <-- insert the homework number here
\newcommand\Name{\textbf{Name:}  Chenyu Zhang}  %insert your name here
\newcommand\UNI{\href{mailto:zcysxy@mit.edu}{zcysxy@mit.edu}}  %insert your UNI here
\newcommand\coursenumber{6.7700[J]} %insert the number of hours you've spent on this homework
\newcommand\duedate{\textbf{Email}: \UNI\\ Due: $due$} %insert the date when the homework was assigned and its due date

%%%%%%%%%%%%%%%%%%%%%%%% Do not change here %%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancyplain}
\headheight 70pt
\lhead{\Name \\ \coursenumber \\[0.2cm]}
\rhead{\duedate \\[0.2cm]}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\chead{\textbf{\large Problem Set \hwnumber $hwtitle$ }} %insert the homework topic here
\lfoot{}
\cfoot{}
\rfoot{\small\thepage}
\headsep 2.5em

\begin{document}
$body$
\end{document}
